﻿@{double averageRating = ViewBag.averageRating;}
@{int productID = ViewBag.productID;}

<div id="averageRating">
    @if (averageRating > 0)
    {
        <center><p id="rating+@productID">@averageRating / 10</p></center>
    }
    else
    {
        <center><p>No rating available</p></center>
    }
</div>